<html xmlns:py="http://purl.org/kid/ns#">
     <body py:match="item.tag == 'body'">
         <p>my header</p>
         <div py:replace="item[:]" />
         <p>my footer</p>
     </body>
</html>